package com.house.entity;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;


@Data
public class BaseEntity implements Serializable {

    private String createUser;

    private String updateUser;

    private String createTime;

    private String updateTime;


    @TableField(exist = false)
    private Integer pageNumber;

    @TableField(exist = false)
    private Integer pageSize;


    public void init() {
        this.setCreateTime(DateUtil.now());
        this.setUpdateTime(DateUtil.now());
    }
}
